<form class="form-group" action="{{route('materialChartPost')}}" method="post">

{{csrf_field()}}
<div class="">
    <label class="col-sm-2 control-label">{{'日期选择'}}</label>
    <div class="col-sm-8" style="width: 200px">
        <div class="input-group input-group-sm">
            <div class="input-group-addon">
                <i class="fa fa-calendar"></i>
            </div>
            <input class="form-control" name="dateStart" type="text" id="dateStart" value="{{old('dateStart')}}">
            <input class="form-control" name="dateEnd" type="text" id="dateEnd" value="{{old('dateEnd', date('Y-m-d H:i:s', time()))}}">
			<script src="/laydate/laydate.js"></script> <!-- 改成你的路径 -->
			<script>
			//执行一个laydate实例
			var dateStart = laydate.render({
			  elem: '#dateStart', //指定元素
              type: 'datetime',
              done:function (value) {
			      $('#dateStart').attr('value', value);
              }
			});

			var dateEnd = laydate.render({
			  elem: '#dateEnd', //指定元素
              type: 'datetime',
              done:function (value) {
			      $('#dateEnd').attr('value', value);
              }
			});

			</script>
        </div>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">{{'材料选择'}}</label>
    <div class="col-sm-8" style="width: 200px">
        <div class="input-group input-group-sm">
            <select class="form-control" name="material" lay-verify="">
                <option value="">请选择一个材料</option>
                @if(!empty($material))
                    @foreach($material as $k => $v)
                    <option value="{{$k}}">{{$v}}</option>
                    @endforeach
                @endif
            </select>
        </div>
    </div>
        <button class="btn btn-info submit btn-sm"><i class="fa fa-search"></i>&nbsp;&nbsp;提交</button>
</div>

</form>